<?php

class Application_Model_DbTable_TransactionStatus extends Zend_Db_Table_Abstract
{

    protected $_name = 'transaction_status';

    public function getDescription($where=null){
      $db=$this->getAdapter();
      if($where == null){
            
      }else{
          $where = "where ".$where;
      }
      $stmt = $db-> query("SELECT description FROM transaction_status ".$where);
      $row = $stmt->fetchAll();

      $stmt->closeCursor();
      return $row[0]['description'];
    }
}

